package Creational_design_pattern.Prototype_Pattern.Shallow_Clone_2;

public class Citation implements Cloneable{
    private String name;

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return this.name;
    }

    @Override
    public Citation clone(){
        Citation clone = null;
        try {
            clone = (Citation) super.clone();
        } catch (CloneNotSupportedException e) {
            System.out.println("Clone Failed");
        }
        return clone;
    }

    public void show(){
        System.out.println(name+"同学评为三好学生");
    }
}
